<template>
    <div>
        <div class="recommend-title">
            周末去哪儿
        </div>
        <ul v-for="item of weenkendList" :key="item.id">
            <li>
                <a class="item" :href="item.baseURL">
                    <img class="item-img" :src="item.imgURL">
                    <div class="item-info">
                        <p class="item-title">{{item.title}}</p>
                        <p class="item-desc">{{item.desc}}</p>
                    </div>
                </a>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weenkendList: Array
  }
}
</script>

<style scoped>
.recommend-title{
    background: #ccc;
    line-height: 250%;
    text-indent: 10px;
}

.item{
    height: 100px;
}

.item-img{
    width:  100%;
    padding: 1px 2px 0 2px;
}

.item-info{
    padding: 5px;
    text-indent: 6px;
}

.item-title{
    line-height: 20px;
    font-size: 18px;
    color: #212121;
}

.item-desc{
    line-height: 15px;
    color: rgb(136, 131, 132);
    margin-top: 10px;
}

</style>
